ls=['t1','t2','t3','t4','t5','t6','t7','t8']
bgs=[[],[],[]]
import random
for i in range(len(ls)):
    index=random.randint(0,len(bgs)-1)
    bgs[index].append(ls[i])

# print(f'办公室1人数{len(bgs[0])},分别是：{bgs[0]}')
# print(f'办公室2人数{len(bgs[1])},分别是：{bgs[1]}')
# print(f'办公室3人数{len(bgs[2])},分别是：{bgs[2]}')
for i in range(3):
    a=len(bgs[i])
    print(f'办公室{i+1}人数{a},分别是:')
    for j in range(a):
        print(bgs[i][j],end='\t')
    print()